package Before826.sheji.Factory;

public class NoodlesFactory {
    public static final int TYPE_LZ = 1;//兰州拉面
    public static final int TYPE_PM = 2;//泡面
    public static final int TYPE_GM = 3;//刀削面
    public static Noodles createNoodles(int type){
            switch (type){
                case 1:
                    return new LZNoodles();
                case 2:
                    return  new PaoNoodles();
                case 3:
                default:
                    return new GuaNoodles();
            }
        }
}
